package com.ruoyi.market.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName repo_kc
 */
@TableName(value ="repo_kc")
@Data
public class RepoKc2 implements Serializable {
    /**
     * 库存信息的id（自增）
     */
    @TableId(type = IdType.AUTO)
    private Integer kcId;

    /**
     * 仓库id
     */
    private Integer repoWareId;

    /**
     * 品牌id
     */
    private Integer poBrandId;

    /**
     * 类型id
     */
    private Integer poTypeId;

    /**
     * 厂商id
     */
    private Integer poFirmId;

    /**
     * 商品id
     */
    private Integer poProductId;

    /**
     * 库存数量
     */
    private Integer kcNum;

    /**
     * 订单详情编号
     */
    private Integer mkDetailId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RepoKc2 other = (RepoKc2) that;
        return (this.getKcId() == null ? other.getKcId() == null : this.getKcId().equals(other.getKcId()))
            && (this.getRepoWareId() == null ? other.getRepoWareId() == null : this.getRepoWareId().equals(other.getRepoWareId()))
            && (this.getPoBrandId() == null ? other.getPoBrandId() == null : this.getPoBrandId().equals(other.getPoBrandId()))
            && (this.getPoTypeId() == null ? other.getPoTypeId() == null : this.getPoTypeId().equals(other.getPoTypeId()))
            && (this.getPoFirmId() == null ? other.getPoFirmId() == null : this.getPoFirmId().equals(other.getPoFirmId()))
            && (this.getPoProductId() == null ? other.getPoProductId() == null : this.getPoProductId().equals(other.getPoProductId()))
            && (this.getKcNum() == null ? other.getKcNum() == null : this.getKcNum().equals(other.getKcNum()))
            && (this.getMkDetailId() == null ? other.getMkDetailId() == null : this.getMkDetailId().equals(other.getMkDetailId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getKcId() == null) ? 0 : getKcId().hashCode());
        result = prime * result + ((getRepoWareId() == null) ? 0 : getRepoWareId().hashCode());
        result = prime * result + ((getPoBrandId() == null) ? 0 : getPoBrandId().hashCode());
        result = prime * result + ((getPoTypeId() == null) ? 0 : getPoTypeId().hashCode());
        result = prime * result + ((getPoFirmId() == null) ? 0 : getPoFirmId().hashCode());
        result = prime * result + ((getPoProductId() == null) ? 0 : getPoProductId().hashCode());
        result = prime * result + ((getKcNum() == null) ? 0 : getKcNum().hashCode());
        result = prime * result + ((getMkDetailId() == null) ? 0 : getMkDetailId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", kcId=").append(kcId);
        sb.append(", repoWareId=").append(repoWareId);
        sb.append(", poBrandId=").append(poBrandId);
        sb.append(", poTypeId=").append(poTypeId);
        sb.append(", poFirmId=").append(poFirmId);
        sb.append(", poProductId=").append(poProductId);
        sb.append(", kcNum=").append(kcNum);
        sb.append(", mkDetailId=").append(mkDetailId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}